-- GENERATED SPELL FOR [Windshear Overlord] --


function spell0_4004(pUnit, Event) --@Battle Fury,Self--
pUnit:FullCastSpellOnTarget(3631,pUnit)
pUnit:RegisterEvent('Sorts_4004', 603, 1)
end

function spell1_4004(pUnit, Event) --@Fevered Fatigue,n/a--
pUnit:FullCastSpellOnTarget(8139,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4004', 3000, 1)
end

function Sorts_4004(pUnit, Event)
local choix_sorts_4004 = math.random(0, 1)
if choix_sorts_4004 == 0 then
pUnit:RegisterEvent('spell0_4004', 1, 1)
end
if choix_sorts_4004 == 1 then
pUnit:RegisterEvent('spell1_4004', 1, 1)
end
end

function mob4004_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4004', math.random(1500, 3000), 1)
end

function mob4004_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4004_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4004_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4004, 1, 'mob4004_Action')
RegisterUnitEvent(4004, 2, 'mob4004_Leave')
RegisterUnitEvent(4004, 3, 'mob4004_Kill')
RegisterUnitEvent(4004, 4, 'mob4004_Die')
